<div class="row">
    <div class="col-lg-12">
        <h3 class="page-header">Thêm tin tức mới</h3>
    </div>
    <!-- /.col-lg-12 -->
</div>
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-9">
                        <form role="form" method="POST" name="AddNews" onsubmit="return checkinput();">
                            <div class="form-group">
                                <div class="row">
                                    <div class="col-lg-3">
                                        <label>Tiêu đề</label>
                                    </div>
                                    <div class="col-lg-6">
                                        <input class="form-control" name="title" id="title" value="">
                                    </div>
                                </div>
                            </div>                                                                       
                            <div class="form-group">
                                <div class="row">
                                <div class="col-lg-3">
                                    <label>Mô tả</label>
                                </div>
                                <div class="col-lg-6">
                                    <input class="form-control" name="description" id="description" value="">
                                </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="row">
                                <div class="col-lg-3">
                                    <label>Nội dung</label>
                                </div>                                                                                                   
                                </div>
                                 <textarea id="content" name="content"></textarea>
                            </div>
                             
                            <div class="form-group">
                                <div class="row">
                                <div class="col-lg-3">
                                    <label>Nhóm người xem</label>
                                </div>
                                <div class="col-lg-6">
                                    <?php echo GlobalLib::getCombo("news_cat_id", "news_category", "id", "name",0, false , '', '', 'class="form-control"', 'Chưa lựa chọn'); ?>
                                </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="row">
                                <div class="col-lg-3">
                                    <label>Sự kiện</label>
                                </div>
                                <div class="col-lg-6">
                                    <input type="checkbox" name="event" id="status" value="1">
                                </div>
                                </div>
                            </div>
                             <div class="form-group">
                                <div class="row">
                                <div class="col-lg-3">
                                    <label>Hiển thị</label>
                                </div>
                                <div class="col-lg-6">
                                    <input type="checkbox" name="status" id="status" value="1">
                                </div>
                                </div>
                            </div>
                            <input id="selectionlog" style="display: none" name="selectionlog" />
                            <div class="form-group">
                                <button type="submit" class="btn btn-primary">Thêm mới</button>
                                <button type="reset" class="btn btn-default">Đặt lại</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>   
</div>
<script type="text/javascript">
    $(document).ready(function () {        
        CKEDITOR.replace('content');                   
    });      
    document.forms['AddNews'].name.focus();
    function set_focus() {
        document.forms['Thêm tin tức'].name.focus();
    }
    function checkinput() {
        var frm = window.document.AddProduct;        
    }
    
</script>